home *** CD-ROM | disk | FTP | other *** search
- #=------------------------------------------------------------------------=
- # Makefile [Button]
- #=------------------------------------------------------------------------=
- # Copyright 1995 Microsoft Corporation. All Rights Reserved.
- #
- # THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF
- # ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO
- # THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A
- # PARTICULAR PURPOSE.
- #=--------------------------------------------------------------------------=
- #
- # builds a Button Control
- #
-
- TARGETOS=BOTH
- APPVER=4.0
-
- MKDEP=mkdep
- MKTYPLIB=mktyplib
- VERSIONHDR=dwinvers.h
-
- !include <win32.mak>
-
- cflags=$(cflags) -Oi
-
- !if "$(NODEBUG)"!=""
- CTL_LIBS=$(winlibs) ..\..\lib\CTLFWR32.LIB uuid2.lib olepro32.lib ole32.lib oleaut32.lib uuid.lib oldnames.lib
- !else
- cdebug=$(cdebug) -DDEBUG
- CTL_LIBS=$(winlibs) ..\..\lib\CTLFWD32.LIB uuid2.lib olepro32.lib ole32.lib oleaut32.lib uuid.lib oldnames.lib
- !endif
-
- CONTROLNAME=template
- OBJS=Guids.Obj\
- $(CONTROLNAME).Obj\
- SubClCtl.obj\
- templCtl.Obj\
- templPPG.Obj\
- $(CONTROLNAME).res
-
- all: dep $(CONTROLNAME).OCX
-
- $(CONTROLNAME).Ocx: $(VERSIONHDR) $(CONTROLNAME).TLB $(OBJS) makefile
- $(link) $(lflags) $(ldebug) -DLL -entry:DllMain$(DLLENTRY) $(OBJS) -out:$*.ocx $(CTL_LIBS) -def:$(CONTROLNAME).def
-
- .cpp.obj:
- $(cc) $(cflags) $(cvars) $(cdebug) -I..\..\Include $<
-
- .c.obj:
- $(cc) $(cflags) $(cvars) $(cdebug) -I..\..\Include $<
-
- $(CONTROLNAME).TLB : $(CONTROLNAME).ODL
- $(MKTYPLIB) $(_MKTYPLIBFLAGS) -nologo -cpp_opt "/C /E /D__MKTYPLIB__ -nologo" -h $(CONTROLNAME)Interfaces.H -o Errors.LOG -tlb $(CONTROLNAME).TLB $(CONTROLNAME).ODL
-
- $(CONTROLNAME).res : $(CONTROLNAME).TLB $(CONTROLNAME).RC
- $(rc) $(rcflags) -fo $(CONTROLNAME).Res $(CONTROLNAME).Rc
-
- Dep: $(CONTROLNAME).TLB
- @echo Generating Dependancies
- $(MKDEP) -n -P ./ -I. -I..\..\Include -s .obj *.c* > dep.mak
-
- $(VERSIONHDR):
- @echo You should edit this file for your own version information
- copy ..\..\framewrk\$(VERSIONHDR)
-
-
- clean:
- del *.obj
- del *.ocx
- del *.tlb
- del *.res
- del *.exp
- del *.mak
- del *.log
- del *.lib
- del $(CONTROLNAME)Interfaces.h
- del dwinres.h
-
- #=----------------------------=
- # Include Dependency Makefile
- #
- !IF EXIST(dep.mak)
- !include dep.mak
- !ENDIF
-
-
-